import Vue from 'vue';
import VueRouter from 'vue-router';
// import Index from '@/views/Index.vue';
import Login from '@/views/Login.vue';
import Home from '@/views/Home.vue';
import Guide from '@/views/Guide.vue';
import Create from '@/views/Create.vue';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'One',
    component: Home,
  },
  {
    path: '/login',
    name: 'Demo',
    component: Login,
  },
  {
    path: '/guide',
    name: 'Guide',
    component: Guide,
  },
  {
    path: '/create',
    name: 'Create',
    component: Create,
  },
];

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes,
});

export default router;
